package com.example.shopping.service;

import com.example.shopping.dao.IUsrDao;
import com.example.shopping.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*
Create by 苍狼 于 2020/1/16
站在巅峰看世界，
落在深渊思人生。
*/
@Service

public class UserServiceImpl implements UserService {

    @Autowired(required = false)
    private IUsrDao usrDao;


    @Override
    public User login(String uname, String upwd) {
        return usrDao.login(uname,upwd);
    }

    @Override
    public int add(User user) {
        return usrDao.add(user);
    }

    @Override
    public int delete(int id) {
        return usrDao.delete(id);
    }

    @Override
    public User selectByUname(String uname) {
        return null;
    }


}
